package com.ruoyi.project.system.orderteamorder.mapper;

import com.ruoyi.project.system.orderteamorder.domain.OrderTeamOrder;
import com.ruoyi.project.system.orderteamorder.domain.OrderTeamOrderDto;

import java.util.List;

/**
 * 拼团订单Mapper接口
 * 
 * @author f_baisi
 * @date 2021-03-03
 */
public interface OrderTeamOrderMapper 
{
    /**
     * 查询拼团订单
     * 
     * @param id 拼团订单ID
     * @return 拼团订单
     */
    public OrderTeamOrder selectOrderTeamOrderById(String id);

    /**
     * 查询拼团订单列表
     * 
     * @param orderTeamOrder 拼团订单
     * @return 拼团订单集合
     */
    public List<OrderTeamOrder> selectOrderTeamOrderList(OrderTeamOrder orderTeamOrder);

    /**
     * 新增拼团订单
     * 
     * @param orderTeamOrder 拼团订单
     * @return 结果
     */
    public int insertOrderTeamOrder(OrderTeamOrder orderTeamOrder);

    /**
     * 修改拼团订单
     * 
     * @param orderTeamOrder 拼团订单
     * @return 结果
     */
    public int updateOrderTeamOrder(OrderTeamOrder orderTeamOrder);

    /**
     * 删除拼团订单
     * 
     * @param id 拼团订单ID
     * @return 结果
     */
    public int deleteOrderTeamOrderById(String id);

    /**
     * 批量删除拼团订单
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOrderTeamOrderByIds(String[] ids);

    List<OrderTeamOrderDto> findListBySuperOId(String id);

    OrderTeamOrderDto findByOrderNo(String orderNo);

    List<OrderTeamOrderDto> findListByStatusAndUid(Integer[] status, String uid, Integer refund);

    OrderTeamOrderDto findByOrderId(String id);

    List<OrderTeamOrderDto> selectOTOList(String uid);


}
